global conf

#### run path
set conf(flow,DDR_ROUTE) /projects/tacoma12_a0/workspace/xwqiu/ddr_route/innovus_test/ddr_route_flow
set conf(flow,innovus) /projects/tacoma12_a0/workspace/xwqiu/ddr_route/innovus_test/flow

#### LEF Files ####
set conf(LEF,DDRPHY) [list \
	/designs/tacoma12/ip/ig/DDRPHY/rev2.0/lef/DDR_IO_SUBPHY_11_H.lef \
	/designs/tacoma12/ip/ig/DDRPHY/rev2.0/lef/DDR_IO_SUBPHY_11.lef \
]
set conf(LEF,DDR_SYNC) [list \
	/designs/tacoma12/ip/ig/DDRPHY/rev2.0/lef/DDR_SYNC.lef \
]

#### DEF Files ####
set conf(DEF,DDRPHY,DDR_SYNC)      /projects/tacoma12_a0/workspace/xwqiu/ddr_route/innovus_test/dataout/DDRPHY_230313.def
set conf(DEF,ddr_top)  	  /projects/tacoma12_a0/workspace/xwqiu/ddr_route/innovus_test/datain/def/ddr_top.20220721.def


### BUFF cell ####

set DDR_ROUTE(clkbuf_cell_height) 2.88
set DDR_ROUTE(clkbuf_cell_width)  3.84


#### DDRPHY (R0) parameter ####
set conf(design,name) DDR_ROUTE_TACOMA12
set conf(design,ddr_top,DDRPHY) {"DDR_IO_SUBPHY_11" "DDR_IO_SUBPHY_11_H"}
set conf(design,ddr_top,SYNC) {"DDR_SYNC"}
set conf(innovus,process) 12
set conf(innovus,core_site) "core7d5T"
set conf(innovus,core_w) 0.096
set conf(innovus,core_h) 0.48
set conf(DDRPHY,length) 539.04
set conf(DDRPHY,width)  395.52
set conf(Term,DDRPHY) { "WR_RSTB" "MC_PCK" }
set conf(Term,SYNC) {"PCK" "WR_RSTB" "PCK_HO"}
#set conf(verilog,DDRPHY) {"WR_RSTB_LG00_OUT" "PCK_LG00_OUT"}
set conf(verilog,DDRPHY) {"WR_RSTB_LGxx_OUT" "PCK_LGxx_OUT"}
set conf(verilog,SYNC) {"PCK_IN" "WR_RSTB_IN" "PLL_PCK_OUT"}

set DDR_ROUTE(h_gap_cell)             DDR_ROUTE_M8Y_M6_GAP_H_*UM   
set DDR_ROUTE(v_gap_cell)             DDR_ROUTE_M9Y_M7_GAP_V_*UM   
set DDR_ROUTE(h_clkbuf_cell)          DDRPHY_ROUTE_clkbuf_M8Y_H
set DDR_ROUTE(h_clkbuf_pll_cell)      DDRPHY_ROUTE_clkbuf_M8Y_H_PLL
set DDR_ROUTE(v_clkbuf_cell)          DDRPHY_ROUTE_clkbuf_M9Y_V
set DDR_ROUTE(v_clkbuf_pll_cell)      DDRPHY_ROUTE_clkbuf_M9Y_V_PLL
set DDR_ROUTE(corner_cell)            DDRPHY_ROUTE_M9Y7_M8Y6_CON
set DDR_ROUTE(hgap)                   DDR_ROUTE_M8Y_M6_GAP_H_1UM
set DDR_ROUTE(vgap)                   DDR_ROUTE_M9Y_M7_GAP_V_1UM
set DDR_ROUTE(v_break_gap)            DDR_ROUTE_M8Y_M6_GAP_H_2UM
set DDR_ROUTE(h_gap_height)           2.88
set DDR_ROUTE(v_gap_width)            2.88
set DDR_ROUTE(corner_cell_height)     2.88
set DDR_ROUTE(corner_cell_width)      2.88
set DDR_ROUTE(h_clkbuf_cell_width)    3.84
set DDR_ROUTE(h_clkbuf_cell_height)   2.88
set DDR_ROUTE(v_clkbuf_cell_width)    3.84
set DDR_ROUTE(v_clkbuf_cell_height)   2.88
set DDR_ROUTE(h_clkbuf_pll_cell_width)    3.84
set DDR_ROUTE(h_clkbuf_pll_cell_height)   2.88
set DDR_ROUTE(v_clkbuf_pll_cell_width)    3.84
set DDR_ROUTE(v_clkbuf_pll_cell_height)   2.88
set DDR_ROUTE(anchor_buffer)          BUFFD24BWP7D5T16P96CPD
set DDR_ROUTE(gap_length) {100 50 10 5 2 1}
set DDR_ROUTE(wck_net)  PCK_OUT
set DDR_ROUTE(wrst_net) WR_RSTB_OUT


set DDR_ROUTE(ddrphy_group)  {}
lappend DDR_ROUTE(ddrphy_group) {lg00_suffix lg01_suffix}
lappend DDR_ROUTE(ddrphy_group) {lg02_suffix lg03_suffix}
lappend DDR_ROUTE(ddrphy_group) {lg04_suffix lg05_suffix}
lappend DDR_ROUTE(ddrphy_group) {lg06_suffix lg07_suffix}
lappend DDR_ROUTE(ddrphy_group) {lg08_suffix lg09_suffix}
lappend DDR_ROUTE(ddrphy_group) {dummy_top lg10_suffix}
lappend DDR_ROUTE(ddrphy_group) {lg11_suffix lg12_suffix}
lappend DDR_ROUTE(ddrphy_group) {dummy_right dummy_right}